.class public Lcom/estrongs/android/ui/homepage/HomeAdapter;
.super Landroidx/recyclerview/widget/RecyclerView$Adapter;
.source "HomeAdapter.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroidx/recyclerview/widget/RecyclerView$Adapter<",
        "Landroidx/recyclerview/widget/RecyclerView$ViewHolder;",
        ">;"
    }
.end annotation


# static fields
.field private static k:I = 0x32

.field public static l:I = 0x2


# instance fields
.field private a:Landroidx/recyclerview/widget/RecyclerView$Adapter;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/recyclerview/widget/RecyclerView$Adapter<",
            "Landroidx/recyclerview/widget/RecyclerView$ViewHolder;",
            ">;"
        }
    .end annotation
.end field

.field private b:Landroid/content/Context;

.field private final c:Ljava/lang/Object;

.field private d:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/estrongs/android/ui/homepage/k;",
            ">;"
        }
    .end annotation
.end field

.field private e:Lcom/estrongs/android/ui/topclassify/i;

.field private f:Les/cy;

.field private g:Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;

.field private h:Lcom/estrongs/android/pop/app/log/viewHolder/LogHeaderViewHolder$b;

.field private i:I

.field private j:Les/vk;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 2

    .line 1
    invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;-><init>()V

    .line 2
    new-instance v0, Ljava/lang/Object;

    invoke-direct {v0}, Ljava/lang/Object;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->c:Ljava/lang/Object;

    .line 3
    new-instance v0, Lcom/estrongs/android/ui/homepage/HomeAdapter$a;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/homepage/HomeAdapter$a;-><init>(Lcom/estrongs/android/ui/homepage/HomeAdapter;)V

    iput-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->j:Les/vk;

    .line 4
    iput-object p1, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->b:Landroid/content/Context;

    .line 5
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->d:Ljava/util/List;

    .line 6
    new-instance v0, Lcom/estrongs/android/ui/topclassify/i;

    const-string v1, "home"

    invoke-direct {v0, v1, p1, p0}, Lcom/estrongs/android/ui/topclassify/i;-><init>(Ljava/lang/String;Landroid/content/Context;Lcom/estrongs/android/ui/homepage/HomeAdapter;)V

    iput-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->e:Lcom/estrongs/android/ui/topclassify/i;

    .line 7
    new-instance v0, Lcom/estrongs/android/ui/homepage/k;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lcom/estrongs/android/ui/homepage/k;-><init>(I)V

    invoke-direct {p0, v0}, Lcom/estrongs/android/ui/homepage/HomeAdapter;->a(Lcom/estrongs/android/ui/homepage/k;)V

    .line 8
    new-instance v0, Les/cy;

    check-cast p1, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-direct {v0, p1, p0}, Les/cy;-><init>(Lcom/estrongs/android/pop/view/FileExplorerActivity;Lcom/estrongs/android/ui/homepage/HomeAdapter;)V

    iput-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->f:Les/cy;

    .line 9
    iget-object p1, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->e:Lcom/estrongs/android/ui/topclassify/i;

    invoke-virtual {p1}, Lcom/estrongs/android/ui/topclassify/i;->h()Z

    move-result p1

    if-nez p1, :cond_0

    .line 10
    new-instance p1, Lcom/estrongs/android/ui/homepage/k;

    const/4 v0, 0x1

    invoke-direct {p1, v0}, Lcom/estrongs/android/ui/homepage/k;-><init>(I)V

    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/homepage/HomeAdapter;->a(Lcom/estrongs/android/ui/homepage/k;)V

    .line 11
    :cond_0
    new-instance p1, Lcom/estrongs/android/ui/homepage/k;

    const/4 v0, 0x5

    invoke-direct {p1, v0}, Lcom/estrongs/android/ui/homepage/k;-><init>(I)V

    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/homepage/HomeAdapter;->a(Lcom/estrongs/android/ui/homepage/k;)V

    .line 12
    invoke-static {}, Les/b00;->q()Les/b00;

    move-result-object p1

    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->j:Les/vk;

    invoke-virtual {p1, v0}, Les/b00;->a(Les/vk;)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/homepage/HomeAdapter;)Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->g:Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;

    return-object p0
.end method

.method static synthetic a(Lcom/estrongs/android/ui/homepage/HomeAdapter;Z)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/homepage/HomeAdapter;->a(Z)V

    return-void
.end method

.method private a(Lcom/estrongs/android/ui/homepage/k;)V
    .locals 2

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->c:Ljava/lang/Object;

    monitor-enter v0

    .line 5
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->d:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    invoke-direct {p0, p1, v1}, Lcom/estrongs/android/ui/homepage/HomeAdapter;->a(Lcom/estrongs/android/ui/homepage/k;I)V

    .line 6
    monitor-exit v0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p1
.end method

.method private a(Lcom/estrongs/android/ui/homepage/k;I)V
    .locals 2

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->c:Ljava/lang/Object;

    monitor-enter v0

    .line 8
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->d:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-le p2, v1, :cond_0

    .line 9
    iget-object p2, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->d:Ljava/util/List;

    invoke-interface {p2, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 10
    :cond_0
    iget-object v1, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->d:Ljava/util/List;

    invoke-interface {v1, p2, p1}, Ljava/util/List;->add(ILjava/lang/Object;)V

    .line 11
    :goto_0
    iget-object p1, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->d:Ljava/util/List;

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    sput p1, Lcom/estrongs/android/ui/homepage/HomeAdapter;->l:I

    .line 12
    monitor-exit v0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p1
.end method

.method private a(Z)V
    .locals 3

    .line 24
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    :try_start_0
    const-string v1, "page"

    const-string v2, "home_page"

    .line 25
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "btn"

    const-string v2, "log_switch"

    .line 26
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "event"

    .line 27
    invoke-virtual {v0, v1, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Z)Lorg/json/JSONObject;

    .line 28
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object p1

    const-string v1, "other"

    invoke-virtual {p1, v1, v0}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method static synthetic b(Lcom/estrongs/android/ui/homepage/HomeAdapter;)Lcom/estrongs/android/ui/topclassify/i;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->e:Lcom/estrongs/android/ui/topclassify/i;

    return-object p0
.end method

.method static synthetic c(Lcom/estrongs/android/ui/homepage/HomeAdapter;)Lcom/estrongs/android/pop/app/log/viewHolder/LogHeaderViewHolder$b;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->h:Lcom/estrongs/android/pop/app/log/viewHolder/LogHeaderViewHolder$b;

    return-object p0
.end method

.method private e(I)V
    .locals 5

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->c:Ljava/lang/Object;

    monitor-enter v0

    const/4 v1, 0x0

    .line 2
    :try_start_0
    iget-object v2, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->d:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    :goto_0
    if-ge v1, v2, :cond_1

    .line 3
    iget-object v3, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->d:Ljava/util/List;

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/estrongs/android/ui/homepage/k;

    .line 4
    iget v4, v3, Lcom/estrongs/android/ui/homepage/k;->a:I

    if-ne v4, p1, :cond_0

    .line 5
    iget-object p1, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->d:Ljava/util/List;

    invoke-interface {p1, v3}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    .line 6
    invoke-virtual {p0, v1}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyItemRemoved(I)V

    .line 7
    monitor-exit v0

    return-void

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 8
    :cond_1
    monitor-exit v0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_2

    :goto_1
    throw p1

    :goto_2
    goto :goto_1
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 22
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->g:Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;

    if-eqz v0, :cond_0

    .line 23
    invoke-virtual {v0}, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;->d()V

    :cond_0
    return-void
.end method

.method public a(IZ)V
    .locals 2

    .line 14
    iget v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->i:I

    const/4 v1, 0x1

    add-int/2addr v0, v1

    iput v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->i:I

    if-eqz p2, :cond_0

    .line 15
    invoke-direct {p0, v1}, Lcom/estrongs/android/ui/homepage/HomeAdapter;->e(I)V

    goto :goto_0

    .line 16
    :cond_0
    new-instance p2, Lcom/estrongs/android/ui/homepage/k;

    invoke-direct {p2, v1}, Lcom/estrongs/android/ui/homepage/k;-><init>(I)V

    .line 17
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->d:Ljava/util/List;

    invoke-interface {v0, p2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 18
    invoke-direct {p0, p2, v1}, Lcom/estrongs/android/ui/homepage/HomeAdapter;->a(Lcom/estrongs/android/ui/homepage/k;I)V

    .line 19
    invoke-virtual {p0, v1}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyItemInserted(I)V

    goto :goto_0

    :cond_1
    if-lez p1, :cond_2

    .line 20
    invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyItemChanged(I)V

    goto :goto_0

    .line 21
    :cond_2
    invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    :goto_0
    return-void
.end method

.method public a(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroidx/recyclerview/widget/RecyclerView$Adapter<",
            "Landroidx/recyclerview/widget/RecyclerView$ViewHolder;",
            ">;)V"
        }
    .end annotation

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->a:Landroidx/recyclerview/widget/RecyclerView$Adapter;

    return-void
.end method

.method public a(Lcom/estrongs/android/pop/app/log/viewHolder/LogHeaderViewHolder$b;)V
    .locals 0

    .line 13
    iput-object p1, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->h:Lcom/estrongs/android/pop/app/log/viewHolder/LogHeaderViewHolder$b;

    return-void
.end method

.method public b()V
    .locals 2

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->e:Lcom/estrongs/android/ui/topclassify/i;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/estrongs/android/ui/topclassify/i;->i()V

    .line 4
    :cond_0
    invoke-static {}, Les/b00;->q()Les/b00;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->j:Les/vk;

    invoke-virtual {v0, v1}, Les/b00;->b(Les/vk;)V

    return-void
.end method

.method public c()V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->f:Les/cy;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Les/cy;->d()V

    :cond_0
    return-void
.end method

.method public d()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->f:Les/cy;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Les/cy;->c()V

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->e:Lcom/estrongs/android/ui/topclassify/i;

    if-eqz v0, :cond_1

    .line 4
    invoke-virtual {v0}, Lcom/estrongs/android/ui/topclassify/i;->j()V

    :cond_1
    return-void
.end method

.method public d(I)V
    .locals 1

    const/4 v0, 0x0

    .line 5
    invoke-virtual {p0, p1, v0}, Lcom/estrongs/android/ui/homepage/HomeAdapter;->a(IZ)V

    return-void
.end method

.method public getItemCount()I
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->a:Landroidx/recyclerview/widget/RecyclerView$Adapter;

    if-eqz v0, :cond_1

    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/l;->m1()Z

    move-result v0

    if-nez v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->a:Landroidx/recyclerview/widget/RecyclerView$Adapter;

    invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->getItemCount()I

    move-result v0

    iget-object v1, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->d:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    add-int/2addr v0, v1

    return v0

    .line 3
    :cond_1
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItemViewType(I)I
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge p1, v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->d:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/ui/homepage/k;

    iget p1, p1, Lcom/estrongs/android/ui/homepage/k;->a:I

    return p1

    .line 3
    :cond_0
    sget v0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->k:I

    iget-object v1, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->a:Landroidx/recyclerview/widget/RecyclerView$Adapter;

    iget-object v2, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->d:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    sub-int/2addr p1, v2

    invoke-virtual {v1, p1}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->getItemViewType(I)I

    move-result p1

    add-int/2addr v0, p1

    return v0
.end method

.method public onBindViewHolder(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V
    .locals 4

    .line 1
    invoke-virtual {p0, p2}, Lcom/estrongs/android/ui/homepage/HomeAdapter;->getItemViewType(I)I

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    .line 2
    check-cast p1, Lcom/estrongs/android/ui/homepage/viewholder/SDCardViewHolder;

    invoke-virtual {p1, v1}, Lcom/estrongs/android/ui/homepage/viewholder/SDCardViewHolder;->a(Ljava/lang/Object;)V

    goto :goto_0

    .line 3
    :cond_0
    invoke-virtual {p0, p2}, Lcom/estrongs/android/ui/homepage/HomeAdapter;->getItemViewType(I)I

    move-result v0

    const/4 v2, 0x1

    if-ne v0, v2, :cond_1

    .line 4
    iget p2, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->i:I

    if-lez p2, :cond_5

    .line 5
    check-cast p1, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;

    iget-object p2, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->e:Lcom/estrongs/android/ui/topclassify/i;

    invoke-virtual {p2}, Lcom/estrongs/android/ui/topclassify/c;->d()Ljava/util/List;

    move-result-object p2

    invoke-virtual {p1, p2}, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;->a(Ljava/lang/Object;)V

    .line 6
    iget p1, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->i:I

    sub-int/2addr p1, v2

    iput p1, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->i:I

    goto :goto_0

    .line 7
    :cond_1
    invoke-virtual {p0, p2}, Lcom/estrongs/android/ui/homepage/HomeAdapter;->getItemViewType(I)I

    move-result v0

    const/4 v3, 0x5

    if-ne v0, v3, :cond_3

    .line 8
    check-cast p1, Lcom/estrongs/android/pop/app/log/viewHolder/LogHeaderViewHolder;

    .line 9
    iget-object p2, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->a:Landroidx/recyclerview/widget/RecyclerView$Adapter;

    instance-of v0, p2, Lcom/estrongs/android/pop/app/log/adapter/LogAdapter;

    if-eqz v0, :cond_2

    .line 10
    check-cast p2, Lcom/estrongs/android/pop/app/log/adapter/LogAdapter;

    invoke-virtual {p2}, Lcom/estrongs/android/pop/app/log/adapter/LogAdapter;->k()Z

    move-result p2

    invoke-virtual {p1, p2}, Lcom/estrongs/android/pop/app/log/viewHolder/LogHeaderViewHolder;->a(Z)V

    .line 11
    :cond_2
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p2

    const-string v0, "show_home_log"

    invoke-virtual {p2, v0, v2}, Lcom/estrongs/android/pop/l;->a(Ljava/lang/String;Z)Z

    move-result p2

    invoke-static {p2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p2

    invoke-virtual {p1, p2}, Lcom/estrongs/android/pop/app/log/viewHolder/LogHeaderViewHolder;->a(Ljava/lang/Object;)V

    .line 12
    iget-object p2, p1, Lcom/estrongs/android/pop/app/log/viewHolder/LogHeaderViewHolder;->b:Landroid/widget/ImageView;

    new-instance v0, Lcom/estrongs/android/ui/homepage/HomeAdapter$b;

    invoke-direct {v0, p0, p1}, Lcom/estrongs/android/ui/homepage/HomeAdapter$b;-><init>(Lcom/estrongs/android/ui/homepage/HomeAdapter;Lcom/estrongs/android/pop/app/log/viewHolder/LogHeaderViewHolder;)V

    invoke-virtual {p2, v0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_0

    .line 13
    :cond_3
    invoke-virtual {p0, p2}, Lcom/estrongs/android/ui/homepage/HomeAdapter;->getItemViewType(I)I

    move-result v0

    const/16 v2, 0x8

    if-ne v0, v2, :cond_4

    .line 14
    check-cast p1, Lcom/estrongs/android/ui/dlna/DlnaDeviceViewHolder;

    invoke-virtual {p1, v1}, Lcom/estrongs/android/ui/dlna/DlnaDeviceViewHolder;->a(Ljava/lang/Object;)V

    goto :goto_0

    .line 15
    :cond_4
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    sub-int/2addr p2, v0

    .line 16
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->a:Landroidx/recyclerview/widget/RecyclerView$Adapter;

    invoke-virtual {v0, p1, p2}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->onBindViewHolder(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V

    :cond_5
    :goto_0
    return-void
.end method

.method public onCreateViewHolder(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    .locals 2

    if-nez p2, :cond_0

    .line 1
    new-instance p1, Lcom/estrongs/android/ui/homepage/viewholder/SDCardViewHolder;

    iget-object p2, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->b:Landroid/content/Context;

    invoke-direct {p1, p2}, Lcom/estrongs/android/ui/homepage/viewholder/SDCardViewHolder;-><init>(Landroid/content/Context;)V

    .line 2
    iget-object p2, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->f:Les/cy;

    invoke-virtual {p1, p2}, Lcom/estrongs/android/ui/homepage/viewholder/SDCardViewHolder;->a(Les/cy;)V

    return-object p1

    :cond_0
    const/4 v0, 0x1

    if-ne p2, v0, :cond_2

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->g:Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;

    if-nez p1, :cond_1

    .line 4
    new-instance p1, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;

    iget-object p2, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->b:Landroid/content/Context;

    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->e:Lcom/estrongs/android/ui/topclassify/i;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/topclassify/c;->d()Ljava/util/List;

    move-result-object v0

    invoke-direct {p1, p2, v0}, Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;-><init>(Landroid/content/Context;Ljava/util/List;)V

    iput-object p1, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->g:Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;

    .line 5
    :cond_1
    iget-object p1, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->g:Lcom/estrongs/android/ui/homepage/viewholder/MediaViewHolder;

    return-object p1

    :cond_2
    const/4 v0, 0x5

    if-ne p2, v0, :cond_3

    .line 6
    new-instance p1, Lcom/estrongs/android/pop/app/log/viewHolder/LogHeaderViewHolder;

    iget-object p2, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->b:Landroid/content/Context;

    invoke-direct {p1, p2}, Lcom/estrongs/android/pop/app/log/viewHolder/LogHeaderViewHolder;-><init>(Landroid/content/Context;)V

    return-object p1

    .line 7
    :cond_3
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/HomeAdapter;->a:Landroidx/recyclerview/widget/RecyclerView$Adapter;

    sget v1, Lcom/estrongs/android/ui/homepage/HomeAdapter;->k:I

    sub-int/2addr p2, v1

    invoke-virtual {v0, p1, p2}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->onCreateViewHolder(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;

    move-result-object p1

    return-object p1
.end method
